Fixing customData when opening a chat:
1. Open the webChat.js file.
2. Copy line 58 (defining customData as an empty object) into your copy.

Fixing the Strategy flag when creating a context:
1. Open the oceanaCoreData.js file.
2. Locate the "createContext" function.
3. Update the 'schema' entry inside the json variable to match the following (make sure you preserve the comma at the end of the line):
'schema' : {
    'ServiceMap' : {
        '1' : {
            'attributes' : oceanaCoreData.attributes,
            'priority' : priority
        }
    },
    'CustomerId' : customerJourneyCommon.customerId,
    "Strategy" : "Most Idle"
},

Reloading the transcript upon reconnection
1. Open the webChatSocket.js file.
2. Locate the "reloadAfterRefresh" function.
3. Insert the following at line 286 (just before the line that announces "Opening chat after page refresh"):
    chatSocket.loadTranscript();

Maximum length of intrinsic details
1. Open the home.html page
2. Update the email-chat input to include a maxLength attribute with a value of 255 (maxLength="255")
3. Update the phone-chat input to include a maxLength attribute with a value of 32 (maxLength="32")
4. Update the area-chat input to include a maxLength attribute with a value of 10 (maxLength="10")
5. Update the country-chat input to include a maxLength attribute with a value of 10 (maxLength="10")
6. Update the user-chat-last input so that its maxLength attribute is 50
7. Repeat for all other chat pages.
8. Open the webChat.js file.
9. Copy the "addCustomFields" function into your copy.

Update the "leaseTime" variable in webChatConfig.js to 1. This is the maximum queue time for chat.

Change "webChat.appendLink(textArray[i], 'newTab', false, span);" inside appendLink of webChat.js (line 1043) to the following:
"webChat.appendLink(textArray[i], 'blank', false, span);"

Insert the following at line 177(just after the line "if (!chatConfig.previouslyConnected) {"):
if (webChat.customFields.length > 10){
				var customFieldsMessage = 'The limit of custom fields is 10. These fields were not added:';
				for (var i = 10; i < webChat.customFields.length; i++) {
					customFieldsMessage = customFieldsMessage.concat('\n', webChat.customFields[i].title);
				}
				webChat.customFields.splice(10, webChat.customFields.length-10);
				webChat.writeResponse(customFieldsMessage, chatConfig.writeResponseClassSystem);
			}
			

Closing websocket if Agent closed contact while customer refreshing page
1.Open the webChatSocket.js file
2.Locate the "parseErrorMessage" function
3.Insert the line "chatConfig.dontRetryConnection = true;" before "chatSocket.clearRefresh();"
4.Insert the lines: 
		if (webSocket !== undefined){
            webSocket.close();
        }
		after "chatSocket.clearRefresh();"
